package com.lynn.controller;

import com.lynn.version.ApiVersion;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("{version}")
@ApiVersion(2)
public class PageController {

    @RequestMapping("index.html")
    public String index(){
        return "index";
    }

    @RequestMapping("/hello")
    public String home(String name) {
        return "index";
    }
}
